<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >
<head>
    <head th:include="/common/global :: global('产品管理','css','product/login')">

</head>
<body>
<style type="text/css">
    table{
        table-layout:fixed;/* 只有定义了表格的布局算法为fixed，下面td的定义才能起作用。 */
    }
    td{
        width:100%;
        word-break:keep-all;/* 不换行 */
        white-space:nowrap;/* 不换行 */
        overflow:hidden;/* 内容超出宽度时隐藏超出部分的内容 */
        text-overflow:ellipsis;/* 当对象内文本溢出时显示省略标记(...) ；需与overflow:hidden;一起使用。*/
    }
</style>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 产品管理 <span class="c-gray en">&gt;</span> 产品名称管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form action="/product/getProductList" method="post" id="searchForm">
            <input type="hidden" id="count" th:value="${pageInfo?.total }" />
            <input type="hidden" id="page" name="page" th:value="${pageInfo?.pageNum }" />
            <input type="hidden" id="pageSize" name="pageSize" th:value="${pageInfo?.pageSize }" />
            <input type="text" name="productName"    placeholder=" 请输入你要查询的产品名称" style="width:250px" class="input-text">
            <button name="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"> <a class="btn btn-primary radius" onclick="layerTools.layerShowFullScreen('新增产品名称','/admin/product/getProduct','')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 新增产品名称</a></span>  </div>
    <div class="mt-20 portfolio-content">
        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="20%">产品类型</th>
                <th width="25%">产品名称</th>
                <th width="10%">操作</th>
            </tr>
            </thead>
            <tbody>
                <tr class="text-c" th:each="item:${pageInfo.list}">
                    <td th:text="${item.productTypeName }">

                    </td>
                    <td th:text="${item.productName }"></td>
                    <td>
                        <a style="text-decoration:none" class="ml-5" th:onClick="'layerTools.layerShowFullScreen(\'活动编辑\',\'/admin/product/getProduct?tid='+${item.tid}+'\',\'\')'"
                           href="javascript:;" title="编辑"><i class="Hui-iconfont">&#xe6df;</i></a>
                        <a style="text-decoration:none" class="ml-5" th:onClick="'layerTools.layerShowFullScreen(\'查看实体\',\'/admin/productEntity/getProductEntityList?productId='+${item.productId}+'\',\'\')'"
                           href="javascript:;" title="查看实体"><i class="Hui-iconfont">&#xe725;</i></a>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="ui-page tr mt10" style="float: right;margin-top: 10px;margin-bottom: 10px"></div>
    </div>
</div>

</body>
</html>